﻿<%@ Page Language="C#" MasterPageFile="~/Shared/DialogPage.Master" AutoEventWireup="true" CodeBehind="SelectDutyUser.aspx.cs" Inherits="Runda.CMS.Portal.NoticeManage.SelectDutyUser" StylesheetTheme="GlobleTheme" %>

<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link rel="stylesheet" type="text/css" href="../Content/global.css" />
    <link rel="stylesheet" type="text/css" href="../Content/Dialog/Dialogs.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<rad:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <rad:AjaxSetting AjaxControlID="btnQuery">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="gridUsers" LoadingPanelID="AjaxLoadingPanel"/> 
                </UpdatedControls>
            </rad:AjaxSetting>
        </AjaxSettings>
    </rad:RadAjaxManager>
    <rad:AjaxLoadingPanel runat="server" ID="AjaxLoadingPanel">
        <img src="../Images/Loading.gif" />数据载入...
    </rad:AjaxLoadingPanel>
   <table width="100%" cellspacing="0" cellpadding="0" height="100%">
            <tr>
                <td class="main">
                    <table width="100%" cellspacing="0" cellpadding="0" height="100%"> 
                        <tr height="1"> 
                            <td>
                               姓名：
                            </td> 
                            <td><asp:TextBox ID="txtUserName" runat="server" CssClass="input" Width="105px"></asp:TextBox></td>
                            <td><asp:Button ID="btnQuery" runat="server" Text="查找" CssClass="button" 
                                    onclick="btnQuery_Click"/></td>
                        </tr> 
                        <tr>
                            <td colspan="3" class="wizBox1">
                            <div class="main">
                                    <rad:RadGrid runat="server" ID="gridUsers" Skin="OCM" AutoGenerateColumns="False" AllowSorting="false" GridLines="None">
                                        <MasterTableView DataKeyNames="UserID"> 
                                            <Columns>
                                                <rad:GridTemplateColumn HeaderText="选择">
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="cbxSelect" runat="server"/>
                                                    </ItemTemplate>
                                                </rad:GridTemplateColumn>
                                                <rad:GridBoundColumn DataField="Account" HeaderText="帐号"></rad:GridBoundColumn>
                                                <rad:GridTemplateColumn HeaderText="用户姓名">
                                                <ItemTemplate> 
                                                    <asp:Label ID="lblUserName" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>
                                                </ItemTemplate>
                                                </rad:GridTemplateColumn> 
                                                <rad:GridBoundColumn DataField="Email" HeaderText="Email"></rad:GridBoundColumn>                                               
                                            </Columns>
                                        </MasterTableView>
                                    </rad:RadGrid>
                                    </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr height="40">
                <td class="buttons">
                    <asp:Button ID="btnOK" runat="server" Text="保 存" style="width: 70px;" 
                        onclick="btnOK_Click"/> 
                    <button style="width: 70px;" onclick="parent.window.close();" type="button">取 消</button>
                </td>
            </tr>
        </table>
</asp:Content>
